﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Posts_Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phMain" Runat="Server">
    <div class="DirectionText">
        <p>To get started editing the site please select a Post from the site map on the left.</p>
    </div>
    <div style="margin:10px;">
        <h3>Posts Requiring Publishing</h3>
        <telerik:RadGrid ID="gridPublish" DataSourceID="dsPostsPublishing" AutoGenerateColumns="false" PageSize="10" AllowPaging="true" runat="server">
            <MasterTableView>
                <PagerStyle Position="Bottom" Mode="NextPrevAndNumeric" />
                <Columns>
                    <telerik:GridHyperLinkColumn HeaderText="Display Name" DataTextField="DisplayName" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Posts/Details.aspx?Id={0}"  />
                    <telerik:GridBoundColumn HeaderText="Path" DataField="Path" />
                    <telerik:GridCheckBoxColumn HeaderText="Marked Ready" DataField="ReadyToPublish" />
                    <telerik:GridBoundColumn HeaderText="Created" DataField="CreatedDateTime" />
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:HyperLink ID="lnkPreview" Text="Preview" OnDataBinding="lnkPreview_DataBinding" Target="_blank" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:PostDataSource ID="dsPostsPublishing" runat="server" />
</asp:Content>

